package edu.sdbi.judge.controller;


import com.alibaba.fastjson.JSONObject;
import edu.sdbi.judge.domain.vo.JsonResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/statistics")
public class StaticData11Controller {

    /**
     * 构建错误响应
     *
     * @param code    错误码
     * @param message 错误信息
     * @return 错误响应JSON字符串
     */
    private String buildErrorResult(int code, String message) {
        JsonResult result = new JsonResult();
        result.setCode(code);
        result.setMsg(message);
        return JSONObject.toJSONString(result);
    }

}
